package notice.dao;

import com.jinyou.utils.common.ValidateUtil;

//消息范围
public class NoticeRange {
    public final static String all = "all";//所有人
    public final static String user = "user";//所有用户
    public final static String shop = "shop";//所有商家
    public final static String admin = "admin";//所有管理员
    public final static String postman = "postman";//所有配送员
    public final static String single = "single";//所有配送员


    public static String getRangeName(String type) {
        if (ValidateUtil.isNotNull(type)) {
            switch (type) {
                case all:
                    return "所有人";
                case user:
                    return "所有用户";
                case shop:
                    return "所有商家";
                case admin:
                    return "所有管理员";
                case postman:
                    return "所有配送员";
                case single:
                    return "指定用户";
            }
        }
        return "指定人员";

    }

}
